package com.rtf.framework.web.mvc.rest.dict;

import com.rtf.framework.common.support.dao.entity.AppJpaBaseEntity;
import com.rtf.framework.dao.rule.levelpath.LevelPathRecord;
import com.rtf.framework.dao.rule.unique.UniqueCodeRecord;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Data
@Entity
@Table(name = "sys_dict")
@Setter
@Getter
public class SysDict extends AppJpaBaseEntity implements LevelPathRecord, UniqueCodeRecord {

    @Column(name = "name")
    private String name;

    @Column(name = "code")
    private String code;

    @Column(name = "remark")
    private String remark;

    @Column(name = "num")
    private Integer num = 9;
    /**
     * 封面图片
     */
    @Column(name = "thumbnail")
    private String thumbnail;

    //调整地址
    @Column(name = "path")
    private String path;
    @Column(name = "status")
    private Integer status = 1;

    @Column(name = "parent_id")
    private Long parentId;

    //id路径，不同id之间使用逗号分隔
    @Column(name = "level_path")
    private String levelPath;

    //完整的名称
    @Column(name = "level_name")
    private String levelName;

}
